import './index.less';

export default (props: any) => {
  const { text = '', style = {}, cpt = null } = props;
  return (
    <div className={`X-title`} style={style}>
      <div className={`X-title-left`}>
        <div className={`X-title-left-icon`} />
        <h1 className={`X-title-left-text`}>{text}</h1>
      </div>
      <div className={'X-title-right'}>{cpt}</div>
    </div>
  );
};